﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNH.MyLayouts;

namespace QLNH.MyForms
{
    public partial class AdminMainForm : FormUC
    {
        public AdminMainForm(LayoutUC mainLayout)
        {
            InitializeComponent();
            this._mainLayout = mainLayout;
            this._formKey = FormKey.ADMIN_MAIN_FORM;
        }

        public override void Resize(Size size)
        {
            base.Resize(size);
        }

        private void mbt_statitics_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_STATISTICS);
        }

        private void mbt_menu_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_MENU_MANAGEMENT);
        }

        private void mbt_events_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_EVENT_MANAGEMENT);
        }

        private void mbt_account_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_ACCOUNT_MANAGEMENT);
        }

        private void mbt_table_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_TABLE_MANAGEMENT);
        }

        private void mbt_info_Click(object sender, EventArgs e)
        {
            this._mainLayout.SwitchForm(FormKey.ADMIN_RESTAURANT_INFO_EDIT);
        }
    }
}
